package com.ks.orderZk.config;

import org.springframework.cloud.client.loadbalancer.LoadBalanced;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.client.RestTemplate;

/**
 * @Author：Administrator
 * @Date：2022/3/10/0010 22:32
 * @Versiion：1.0
 */
@Configuration
public class ApplicationContextConfig {


    @LoadBalanced
    @Bean
    public RestTemplate getRestTemplate(){
        return new RestTemplate();
    }
}
